home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / conpackets / poster < prev    next >
Text File  |  1995-11-05  |  2KB  |  37 lines

  1. Article 1926 of comp.sys.amiga:
  2. Path: mcdsun!noao!hao!hplabs!sdcrdcf!ucla-cs!rutgers!cbmvax!carolyn
  3. From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner)
  4. Newsgroups: comp.sys.amiga
  5. Subject: Re: CURSOR POSITION REPORT
  6. Message-ID: <1341@cbmvax.cbmvax.cbm.UUCP>
  7. Date: 4 Feb 87 17:40:55 GMT
  8. References: <755@crash.CTS.COM>
  9. Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner)
  10. Organization: Commodore Technology, West Chester, PA
  11. Lines: 199
  12.  
  13. In article <755@crash.CTS.COM> billk@pnet01.CTS.COM (Bill Kelly) writes:
  14. >...
  15. >Does anyone have a working example of how to get the Console device to report
  16. >the current cursor position to you?  I have tried many times, following
  17. >different tidbits of information but have never been successful.  
  18. >...
  19.  
  20.    I've never used the ESC sequence method of getting cursor position
  21. reports in the read stream.  You don't say if you're in the CLI window
  22. or in an Intuition window with a console.device.  This example shows
  23. (among other things) how to get the pointer to the ConUnit structure
  24. of the CLI window using a DiskInfo packet.  The ConUnit structure
  25. contains lots of neat things, including current and maximum cursor
  26. character positions.  
  27.  
  28.    If you're in an Intuition window with a console device attached,
  29. you should be able to find the ConUnit pointer in YourIoRequest->io_Unit.
  30.  
  31. -- 
  32. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  33. Carolyn Scheppner -- CBM   >>Amiga Technical Support<<
  34.                      UUCP  ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn 
  35.                      PHONE 215-431-9180
  36. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  37.